<?php
@mysql_pconnect('localhost', 'root', '');
@mysql_select_db('studial');
	if(isset($_GET['id']))
	{
		$user_id = $_GET['id'];
		$course_id = $_GET['course'];
		@mysql_query("insert into `enroll` (`id`, `user_id`, `course_id`, `role`) values (NULL, '".$id."', '".$course_id."', '".$i."');");
			
		
	}

?>